#ifndef GLOBALPARAMETERFORTAXI_H
#define GLOBALPARAMETERFORTAXI_H

#pragma once

#include "socket/protocol/gps.h"
#include "qstring.h"

namespace interface
{
enum InterfaceRequestEnum
{
    //basic functions
    LOGIN = 0,       //driver login
    SERVICE_CHOOSE,  //choose services
    CHOOSE_CLIENT,   //choose a client
    CONFIRM_CLIENT,  // user confirms the client he is selecting
    DRIVING_TO_CLIENT,//driving to the client
    CAR_DRIVING,     //the car is taking the passenger towards the destination
    ARRIVING,        //when the car arrvies at the destination

    // other functions
    INTELLIGENT_GUIDE,    //intelligent guide
    FIXED_LOCATION_CALL_CAR, //fixed location to call the car
    ROUNTIN_SEARCH, //search for a rountin from one place to another
    LANDSCAPE_SEARCH,//search for a specific place
    CUSTOMER_SERVICES//look for customer services
};
}

typedef struct
{
    QString name;
    QString car_id;
}DRIVER_NAME, *PDRIVER_NAME;

typedef struct
{
    QString client_id;
    QString client_name;
    int arrivingTime;
    protocal::GPS startPos;
    protocal::GPS endPos;
    QString mobile_phone;
}CHOSEN_CLIENT_INFO, *PCHOSEN_CLIENT_INFO;

typedef struct
{
    PCHOSEN_CLIENT_INFO pClientInfo;
    QString order_id;
}ORDER_INFO, *PORDER_INFO;

#endif // GLOBALPARAMETERFORTAXI_H
